package com.yanyilu.basing.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;



import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Sxx
 * @since 2020-10-26
 */
@Data
@Accessors(chain = true)
@TableName("wx_pay")
public class WxPay extends Model<WxPay> {

    private static final long serialVersionUID = 1L;

    /**
     * 微信支付主键
     */
    @TableId(value = "wx_pay_id", type = IdType.AUTO)
    private Integer wxPayId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 支付单号
     */
    @TableField("pay_number")
    private String payNumber;

    /**
     * 支付时间
     */
    @TableField("pay_time")
    private String payTime;

    @TableField("wx_pay_no")
    private String wxPayNo;




    @Override
    protected Serializable pkVal() {
        return this.wxPayId;
    }

}
